// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './app';
// import Router from 'vue-router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-default/index.css';
import {router} from './utils/router.utils';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap.js';
import 'font-awesome/css/font-awesome.min.css';
import VueResource from 'vue-resource';
import Vuelidate from 'vuelidate';
import {i18n} from './utils/i18n.utils';
import store from './store';

Vue.use(Vuelidate);
Vue.use(VueResource);
// Vue.use(Router)
Vue.use(ElementUI);


Vue.config.productionTip = false;

/* let router = new Router({routes: RouterUtils.getRouters().concat([{
	path: '/',
	name: 'Hello000',
	component: resolve => require(['@/components/Hello'], resolve)
}])})

router.beforeEach((to, from, next) => {
	console.log(to,from);

	next();
}) */

console.log(store);

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	i18n,
	store,
	template: '<App/>',
	components: { App }
});
